<?php
return [
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
            //'class' => 'yii\redis\Cache',  //redis接管缓存
        ],
        'redis' =>[

            'class' => 'yii\redis\Connection',

            'hostname' => 'localhost',  //你的redis地址

            'port' => 6379, //端口

            'database' => 0,

        ],

        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=xf_projet',
            'username' => 'root',
            'password' => 123456,
            'charset' => 'utf8',
            'tablePrefix' => 'xf_',
            'enableSchemaCache' => true,
            'schemaCacheDuration' => 24*3600,
            'schemaCache' => 'cache',
        ],
        "authManager" => [
            "class" => 'yii\rbac\DbManager',
        ],
    ],
    // 配置语言
    'language'=>'zh-CN',
    // 配置时区
    'timeZone'=>'Asia/Shanghai',
];
